home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 28 < prev    next >
Internet Message Format  |  1996-08-06  |  833b

  1. Path: lnsnews.lns.cornell.edu!news
  2. From: nk@lns598.lns.cornell.edu (Nobuhiko Katayama)
  3. Newsgroups: comp.std.c
  4. Subject: sizeof(1L) in preprocesor;How to tell sizeof(double)>sizeof(long) ?
  5. Date: 04 Jan 1996 23:39:39 -0500
  6. Organization: Wilson Lab, Cornell U., Ithaca, NY  14853
  7. Sender: nk@lns101.lns.cornell.edu
  8. Message-ID: <sc3f9vb6gk.fsf@lns101.lns.cornell.edu>
  9. NNTP-Posting-Host: lns101.lns.cornell.edu
  10. X-Newsreader: Gnus v5.1
  11.  
  12. Dear experts,
  13.     I understand that sizeof(double) cannot be used with #if as
  14. double is a type name. Could you tell me where in the standard it says
  15. that I cannot use sizeof(1.0) or sizeof(1L)... ? Assiming that I can't
  16. use sizeof(1.0) < sizeof(1L), is there any portable way to tell whether
  17. long is longer(shorter) than double in preprocessor stage ?
  18.  
  19.         Thanks in advance,
  20.             Nobu Katayama (Cornell Univ.)
  21.